package cn.tedu.charging.device.dao.repository.impl;

import cn.tedu.charging.device.dao.mapper.ChargingStationMapper;
import cn.tedu.charging.device.dao.repository.ChargingStationRepository;
import cn.tedu.charging.device.pojo.po.ChargingStationPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Collections;
import java.util.List;

@Repository
public class ChargingStationRepositoryImpl implements ChargingStationRepository {
    @Autowired
    private ChargingStationMapper chargingStationMapper;
    @Override
    public List<ChargingStationPO> getStations() {
        List<ChargingStationPO> stations = chargingStationMapper.selectList(null);
        return stations;
    }
}
